package com.atguigu.yygh.order.client;

import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "service-order")
public interface OrderFeignClient {
    //注意:如果feign远程服务调用,需要传递对象,请求方式改为post
    @PostMapping("/api/order/getOrderCount")
    public Map getOrderCount(@RequestBody OrderCountQueryVo orderCountQueryVo);
}
